{% extends 'base.html' %}

{% block page_content %}
    {% if name %}
        <h1>欢迎{{ name }}</h1>
    {% endif %}
{#    <h1>hello world!</h1>#}

    <h3>现在的时间是：{{ moment(current_time).format('LLL') }}</h3>
    <h3>距离刚才的时间已过去了：{{ moment(current_time).fromNow(refresh=True) }}</h3>
{#    <div style="width: 600px">#}
{#        <form action="" method="post">#}
{#            {{ form.hidden_tag() }}#}
{#            <div class="input-group">#}
{#               {{ form.name.label(class="input-group-addon",id="basic-addon1") }}#}
{#                {{ form.name(class="form-control", placeholder="请输入你的姓名") }}#}
{#                {% if form.name.errors %}#}
{#                        {{ form.name.errors }}#}
{#                {% endif %}#}
{##}
{##}
{#            </div>#}
{#              <div class="input-group" style="margin-top: 20px">#}
{#               {{ form.age.label(class="input-group-addon",id="basic-addon1") }}#}
{#                {{ form.age(class="form-control", placeholder="请输入你的年龄") }}#}
{#                  {% if form.age.errors %}#}
{#                        {{ form.age.errors }}#}
{#                  {% endif %}#}
{##}
{##}
{#            </div>#}
{#             <div class="input-group">#}
{#               {{ form.phone.label(class="input-group-addon",id="basic-addon1") }}#}
{#                {{ form.phone(class="form-control", placeholder="请输入你的手机号") }}#}
{##}
{#            </div>#}
{#            <div class="input-group">#}
{#                {{ form.select( class="btn btn-default dropdown-toggle") }}#}
{#            </div>#}
{##}
{#            {{ form.submit(class="btn btn-info") }}#}
{#        </form>#}
{#    </div>#}
{% import "bootstrap/wtf.html" as wtf %}
    {{ wtf.quick_form(form) }}
{% endblock %}